GET PlanCare2Api/Relations/Photo?relationIds[0]={relationIds[0]}&relationIds[1]={relationIds[1]}
Retrieve all photos of the given relations
Relation(s) can be of the following types: Client, Prospect, Employee, ContactPerson
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| relationIds |
Identifiers of relation. |
Collection of integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of RelationPhoto| Name | Description | Type | Additional information |
|---|---|---|---|
| RelationId |
Id |
integer |
None. |
| Photo |
Photo content in Base64String format. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"$id": "1",
"RelationId": 1,
"Photo": "sample string 2"
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfRelationPhoto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.Relation">
<RelationPhoto>
<Photo>sample string 2</Photo>
<RelationId>1</RelationId>
</RelationPhoto>
<RelationPhoto>
<Photo>sample string 2</Photo>
<RelationId>1</RelationId>
</RelationPhoto>
</ArrayOfRelationPhoto>